﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LERP.Domain.Enums;
using SharpArch.Domain.DomainModel;
using System.ComponentModel.DataAnnotations;

namespace LERP.Domain
{
    public class Dictionary : Entity
    {
        /// <summary>
        /// 字典Key
        /// </summary> 
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(64, ErrorMessage = "{0}取值长度{1}~{2}个字符", MinimumLength = 0)]
        public virtual string DictionaryKey { get; set; }
        /// <summary>
        /// 字典值
        /// </summary> 
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(64, ErrorMessage = "{0}取值长度{1}~{2}个字符", MinimumLength = 0)]
        public virtual string DictionaryText { get; set; }
        /// <summary>
        /// 字典值
        /// </summary>  
        [StringLength(255, ErrorMessage = "{0}取值长度{1}~{2}个字符", MinimumLength = 0)]
        public virtual string Remark { get; set; }


        /// <summary>
        /// 状态
        /// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        public virtual DataStatus Stauts { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        public virtual DateTime Created { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        public virtual DateTime Modified { get; set; }
    }
}
